package javabase.schoolwork.day5_26;

/**
 * @author fance
 * @date 2018/5/26 20:31
 */
public class User {
    private String name;
    private String password;
    private int count;

    public User() {
        count++;
    }

    public User(String name) {
        this.name = name;
        count++;
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
        count++;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", count=" + count +
                '}';
    }
}
